from selenium import webdriver
# 创建浏览器操作对象
path = 'chromedriver.exe'


browser = webdriver.Chrome(path)

# url = 'https://www.baidu.com/'
# browser.get(url)

# 访问网站
url='https://www.jd.com/'
browser.get(url)
# 获取网页源码
content=browser.page_source
print(content)

